package cn.cqie.attendance.teacher.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.ibatis.type.Alias;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author wqh
 * @date 2021/7/6 12:20
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "TeacherHomeworkReq对象", description = "查询作业作业请求参数")
@Alias("TeacherHomeworkReq")
public class TeacherHomeworkReq implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "当前教师Id(无需填写，后台获取)")
    private Integer teacherId;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(name = "作业开始发布时间 beginPublishTime",value = "2021-06-16 17:30:45")
    private Date beginPublishTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(name = "作业结束发布时间",value = "2021-06-26 17:30:45")
    private Date endPublishTime;

    @ApiModelProperty(name = "项目名称Id：courseId",value = "下拉框--》value值：1")
    private Integer courseId;

    @ApiModelProperty(name = "作业主题：homeworkTheme",value = "Java实训")
    private String homeworkTheme;

    @ApiModelProperty(name = "实训老师：trainTeacher",value = "下拉框--》value值：1")
    private Integer trainTeacher;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(name = "计划完成时间：endTime",value = "2021-06-26 17:30:45")
    private Date endTime;

    @ApiModelProperty(name = "小组：groupId",value = "下拉框--》value值：1")
    private Integer groupId;

    @ApiModelProperty(name = "作业类型：homeworkType",value = "0：平时作业，1：小组作业，2：最终作业")
    private Integer homeworkType;

    @ApiModelProperty(name = "当前页：pageNum",value = "1")
    private Integer pageNum;

    @ApiModelProperty(name = "页面大小：pageSize",value = "10")
    private Integer pageSize;
}
